package dcx.map.game
{
	import com.dcx.game.component.loading.URLLoaderItem;
	
	import dcx.map.BaseMap;
	
	import flash.events.Event;
	
	public class GameMap extends BaseMap
	{
		public function GameMap()
		{
			super();
		}
		public function loadXML(id:int):void
		{
			var loader:URLLoaderItem = new URLLoaderItem("xml/"+id+".xml");
			re(loader, Event.COMPLETE, xmlLoadComplete);
			loader.start();
		}
		private function xmlLoadComplete(event:Event):void
		{
			staticData.setData(URLLoaderItem(event.target).content);
		}
	}
}